let user=require('../../db/useradmin');



module.exports=async(req,resp)=>{
    await user.deleteOne({uid:req.body.id}).then((data)=>{
        if(!data){
            console.log(req.body.id);
            resp.status(500).send('删除失败')
        }else{
            console.log(req.body.id);
            resp.redirect('/index/discussion')
        }
    })
}